package com.iqiyi.pps.epg.core.model.record;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by hejia on 2018/4.
 */
@Entity
@Table(name = "record_channel_signal")
@Cache(usage = CacheConcurrencyStrategy.NONE)
public class RecordChannelSignal {
    private long id;
    private long signalId;
    private long channelId;
    private String serverIp;
    private String opUser;
    private Timestamp createTime;
    private Timestamp updateTime;
    private int status;

//    private String channelName;
//    private String channelCode;
//    private String signalName;
//    private String signalAddress;
//    private int priority;
//    private String serverCluster;
//    private int enable;


    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Column(name = "signal_id")
    public long getSignalId() {
        return signalId;
    }

    public void setSignalId(long signalId) {
        this.signalId = signalId;
    }

    @Column(name = "channel_id")
    public long getChannelId() {
        return channelId;
    }

    public void setChannelId(long channelId) {
        this.channelId = channelId;
    }

    @Column(name = "server_ip")
    public String getServerIp() {
        return serverIp;
    }

    public void setServerIp(String serverIp) {
        this.serverIp = serverIp;
    }

    @Column(name = "op_user")
    public String getOpUser() {
        return opUser;
    }

    public void setOpUser(String opUser) {
        this.opUser = opUser;
    }

    @Column(name = "create_time")
    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    @Column(name = "update_time", insertable = false, updatable = false)
    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Column(name = "status")
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "RecordChannelSignal{" +
                "id=" + id +
                ", signalId=" + signalId +
                ", channelId=" + channelId +
                ", serverIp='" + serverIp + '\'' +
                ", opUser='" + opUser + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", status=" + status +
                '}';
    }

    /*   @Transient
    public String getChannelName() {
        return channelName;
    }

    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    @Transient
    public String getChannelCode() {
        return channelCode;
    }

    public void setChannelCode(String channelCode) {
        this.channelCode = channelCode;
    }

    @Transient
    public String getSignalName() {
        return signalName;
    }

    public void setSignalName(String signalName) {
        this.signalName = signalName;
    }

    @Transient
    public String getSignalAddress() {
        return signalAddress;
    }

    public void setSignalAddress(String signalAddress) {
        this.signalAddress = signalAddress;
    }

    @Transient
    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    @Transient
    public String getServerCluster() {
        return serverCluster;
    }

    public void setServerCluster(String serverCluster) {
        this.serverCluster = serverCluster;
    }

    @Transient
    public int getEnable() {
        return enable;
    }

    public void setEnable(int enable) {
        this.enable = enable;
    }*/


}
